package com.qf.mapper;

import com.qf.pojo.TbUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author langazhe
 * @version V1.0
 * @Project mavens
 * @Package com.qf.mapper
 * @Description:
 * @Date 2022/5/16 21:58
 */
public interface UserMapper {
    TbUser findById(Long id);

    TbUser findByUnameAndPasswordWithMap(Map map);

    TbUser findByUnameAndPasswordWithPojo(TbUser user);

    TbUser findByUnameAndPassword( @Param("name") String username, @Param("pwd") String password);

    List<TbUser> findByNameLike(String nameLike);

    TbUser findWithOrderByUid(Long userId);

    List<TbUser> findByMulti(Map map);

    List<TbUser> findByIds(@Param("ids") List<Long> ids);
}
